import formCreate from "@form-create/element-ui";
import FcEditor from "@form-create/component-wangeditor";
const component = require.context("./", true, /(?!\.\/)\w+(?<!\/)$/);
component.keys().forEach(fileName => {
  const [name] = fileName.match(/(?!\.\/)\w+(?<!\/)/);
  //   console.log(fileName, name);
  formCreate.component(name, component(fileName).default);
});
formCreate.component("editor", FcEditor);
export default formCreate;
